﻿using Microsoft.EntityFrameworkCore.ChangeTracking;
using Microsoft.EntityFrameworkCore.ValueGeneration;

public class CreationTimeValueGenerator : ValueGenerator<DateTime>
{
    public override bool GeneratesTemporaryValues { get; }

    public override DateTime Next(EntityEntry entry)
    {
        return DateTime.Now;
    }
}